Optimal. Leaf size=63 \[ -\frac{a^3 \sin ^3(c+d x)}{3 d}+\frac{4 a^3 \sin (c+d x)}{d}+\frac{3 a^3 \sin (c+d x) \cos (c+d x)}{2 d}+\frac{5 a^3 x}{2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0746903, antiderivative size = 63, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 5, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.238, Rules used = {3791, 2637, 2635, 8, 2633} \[ -\frac{a^3 \sin ^3(c+d x)}{3 d}+\frac{4 a^3 \sin (c+d x)}{d}+\frac{3 a^3 \sin (c+d x) \cos (c+d x)}{2 d}+\frac{5 a^3 x}{2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3791
Rule 2637
Rule 2635
Rule 8
Rule 2633
Rubi steps
\begin{align*} \int \cos ^3(c+d x) (a+a \sec (c+d x))^3 \, dx &=\int \left (a^3+3 a^3 \cos (c+d x)+3 a^3 \cos ^2(c+d x)+a^3 \cos ^3(c+d x)\right ) \, dx\\ &=a^3 x+a^3 \int \cos ^3(c+d x) \, dx+\left (3 a^3\right ) \int \cos (c+d x) \, dx+\left (3 a^3\right ) \int \cos ^2(c+d x) \, dx\\ &=a^3 x+\frac{3 a^3 \sin (c+d x)}{d}+\frac{3 a^3 \cos (c+d x) \sin (c+d x)}{2 d}+\frac{1}{2} \left (3 a^3\right ) \int 1 \, dx-\frac{a^3 \operatorname{Subst}\left (\int \left (1-x^2\right ) \, dx,x,-\sin (c+d x)\right )}{d}\\ &=\frac{5 a^3 x}{2}+\frac{4 a^3 \sin (c+d x)}{d}+\frac{3 a^3 \cos (c+d x) \sin (c+d x)}{2 d}-\frac{a^3 \sin ^3(c+d x)}{3 d}\\ \end{align*}
Mathematica [A] time = 0.0614099, size = 44, normalized size = 0.7 \[ \frac{a^3 (45 \sin (c+d x)+9 \sin (2 (c+d x))+\sin (3 (c+d x))+30 c+30 d x)}{12 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.065, size = 74, normalized size = 1.2 \begin{align*}{\frac{1}{d} \left ({\frac{{a}^{3} \left ( \left ( \cos \left ( dx+c \right ) \right ) ^{2}+2 \right ) \sin \left ( dx+c \right ) }{3}}+3\,{a}^{3} \left ( 1/2\,\cos \left ( dx+c \right ) \sin \left ( dx+c \right ) +1/2\,dx+c/2 \right ) +3\,{a}^{3}\sin \left ( dx+c \right ) +{a}^{3} \left ( dx+c \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.1161, size = 96, normalized size = 1.52 \begin{align*} -\frac{4 \,{\left (\sin \left (d x + c\right )^{3} - 3 \, \sin \left (d x + c\right )\right )} a^{3} - 9 \,{\left (2 \, d x + 2 \, c + \sin \left (2 \, d x + 2 \, c\right )\right )} a^{3} - 12 \,{\left (d x + c\right )} a^{3} - 36 \, a^{3} \sin \left (d x + c\right )}{12 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.65539, size = 119, normalized size = 1.89 \begin{align*} \frac{15 \, a^{3} d x +{\left (2 \, a^{3} \cos \left (d x + c\right )^{2} + 9 \, a^{3} \cos \left (d x + c\right ) + 22 \, a^{3}\right )} \sin \left (d x + c\right )}{6 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.35408, size = 108, normalized size = 1.71 \begin{align*} \frac{15 \,{\left (d x + c\right )} a^{3} + \frac{2 \,{\left (15 \, a^{3} \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{5} + 40 \, a^{3} \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{3} + 33 \, a^{3} \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )\right )}}{{\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + 1\right )}^{3}}}{6 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]